<template>
  <!-- <h2 style="color: pink; border-bottom: 1px solid pink">想你了</h2> -->
  <div class="box">
    <div class="describe">
      <p>你的目光落在我身上的时候</p>
      <p>我就希望我能变好一点</p>
      <p>再好一点</p>
      <p>我想要成为发光的存在</p>
      <p>想要你有一天会因为我而骄傲</p>
      <p>不知道从什么时候开始</p>
      <p>我变得很爱学习</p>
      <p>我怕以后的我给不了你想要的生活</p>
      <p>不停的想要充实自己、壮大自己</p>
      <p>所以有时候可能会忽略你的感受</p>
    </div>
    <div class="new">
      <h3
        style="text-align: center; border-bottom: 1px solid pink; color: pink"
      >
        最新消息
      </h3>
      <li v-for="(item, index) in logList" :key="index">{{ item }}</li>
      <!-- <li>*用户在2021/12/31 12:13:14登录了</li>
      <li>*用户在2021/12/31 12:13:14发表了说说，快去看看吧！</li> -->
    </div>
  </div>
</template>

<script>
import overviewJS from "./overview.js";
import { onMounted } from "vue";
export default {
  name: "overview",
  setup() {
    let {
      status: { logList },
      methodFun: { getlog },
    } = overviewJS();
    onMounted(() => {
      getlog();
    });

    return {
      logList,
      getlog,
    };
  },
};
</script>

<style lang="less" scoped>
.box {
  display: flex;
  width: 100%;
  align-items: center;
  .new {
    margin-top: 60px;
    width: 300px;
    height: 600px;
    z-index: 9;
    border: 1px solid pink;
    box-sizing: border-box;
    padding: 0px 10px;
    box-shadow: 0px 0px 10px 2px red;
    overflow-y: auto;
    li {
      text-indent: 24px;
      list-style: none;
      color: #ff4500;
      margin-bottom: 14px;
    }
  }
  .describe {
    flex: 1;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding-top: 80px;
    font-size: 22px;
    font-family: "kaiti";
    color: red;
  }
}
</style>
